﻿using System;
using System.Globalization;
using System.Windows.Data;

namespace ImageConverter.Converters
{
    public class InverseBoolToBoolConverter : IValueConverter
    {
        #region IValueConverter Members

        public object Convert(object value, Type targetType, object parameter, CultureInfo culture)
        {
            if (value == null)
                return true;

            bool bVal = (bool)value;

            return !bVal;
        }

        public object ConvertBack(object value, Type targetType, object parameter, CultureInfo culture)
        {
            throw new NotImplementedException();
        }

        #endregion
    }
}
